/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.icad.controllers;

import javax.ejb.EJB;
import javax.faces.view.ViewScoped;
import javax.inject.Named;
import org.icad.dao.AbstractFacade;
import org.icad.dao.CentroEstudioDAO;
import org.icad.entity.CentroEstudio;

/**
 *
 * @author Gabriel Bran gbran.u@gmail.com
 */
@Named
@ViewScoped
public class CentroEstudioController extends Catalog<CentroEstudio> implements java.io.Serializable {

    @EJB
    private CentroEstudioDAO centroEstudioDAO;

    @Override
    protected void validate() throws Exception {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    protected AbstractFacade getCurrentDAOFacade() {
        return centroEstudioDAO;
    }

    @Override
    protected void initializeBean() {
        set(new CentroEstudio(), Catalog.CREATE_ACTION);
    }

}
